package www.com.library.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;

import www.com.common.library.R;

public class LoadingProgress extends RelativeLayout {
	private Context context;
	private View mView; 
	public LoadingProgress(Context context) {
		super(context);
		initView(context);
	}
	
	public LoadingProgress(Context context, AttributeSet attrs){
		super(context,attrs);
		initView(context);
	}
	
	public LoadingProgress(Context context, AttributeSet attrs, int defStyle){
		super(context,attrs,defStyle);
		initView(context);
	}
	
	public void initView(Context act) {
		this.context = act;
		mView = LayoutInflater.from(context).inflate(R.layout.dialog_progress, this, true);
	}
	
	public void setViewVisibility(int visibility){
		mView.setVisibility(visibility);
	}

}
